home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Ham⁄GPS / NET⁄Mac Starters kit / Autoexec.net < prev    next >
Text File  |  1992-07-15  |  11KB  |  363 lines

  1. #
  2. #
  3. # Macintosh-specific "autoexec.net" config. file for version 2.0 + PA2AGA (71)
  4. #
  5. #
  6. # THIS FILE MUST BE ON THE TOP LEVEL OF YOUR DISK. DO NOT PUT IT INSIDE A
  7. # FOLDER AS NET/Mac WILL NOT BE ABLE TO FIND IT.
  8. #
  9. #
  10. # When installing TCP be sure to replace all
  11. # occurrences of YOURCALL with your own callsign and all
  12. # occurrences of IPADDRESS with the IP address that was
  13. # assigned to you by your local IP Address Coordinator.
  14. # (You MUST have a distinct personal IP address for every
  15. # station you put on the air; if you don't know what this
  16. # means, see the host.net file for your local IP address corrdinator or
  17. # ask others active on TCP how to get )
  18. #
  19. # It will help you to later read the NET/Mac beginners guide, ( it's in the
  20. # docs and help folder ) to understand this file better, you can then remove
  21. # all these comments to make this file smaller.
  22. #
  23. # Define who we are -- this must come first in this file:
  24. #
  25. hostname YOURCALL.ampr.org
  26. ax25 mycall YOURCALL
  27. #
  28. # Path to the Hosts.Net file - It could reside in another folder.  
  29. # Also the file can now be named what-ever you desire.  
  30. # Note that double quotes are required if there are
  31. # any space characters in the path name, otherwise they are not needed.
  32. # In the example below the host.net file can be found on the disk
  33. # NET/Mac.
  34. #
  35. hostfile "NET/Mac:Hosts.net"
  36. #
  37. # Attach interfaces:
  38. # Syntax for a Macintosh using the modem port for AX25:
  39. # attach <hw type> <not used but needs to be here> <string version
  40. # of the port  ('a' or 'b')> <mode> <label> <bufsize> <mtu> <speed>
  41. #
  42. # The following typical attach command for the Mac says that you
  43. # will use an asynchronous port, specifically port 'a' (modem
  44. # port, b is printer port ), talking to an "ax25" (i.e. KISS-based) TNC.  
  45. # The name you will use when running TCP to refer to this port is "ax0". 
  46. # ( later when you are used to Net/Mac you may change this to anything you
  47. # like ) You allow a maximum of 2048 bytes of buffer; packets are no more
  48. # than 256 bytes long.  You talk to the TNC at 9600 baud. You may also attach
  49. # other types of device to NET/Mac, see tha attach command in the NET/Mac help
  50. # menu.
  51. #
  52. #
  53. attach asy 1 a ax25 ax0 2048 256 9600
  54. #
  55. # This command will allow you to attach a Kantronics KPC 4 dual port TNC
  56. # so allowing control of both ports from the one serial interface on the
  57. # Mac. The interface name used below is kp0, when attached in this way
  58. # port one on the TNC becomes, kp0a and port two becomes kp0b. You will
  59. # also need to change the PARAM and ROUTING entries to show this new
  60. # interface name.
  61. #attach kpc4 0 a ax25 kp0 2048 256 9600
  62. #
  63. # This command will allow you to attach a SLIP link via one of the serial
  64. # interfaces, in this case it's attached to the printer port of the computer
  65. # and is called MO, short for modem.
  66. #
  67. #attach asy 1 b slip mo 1024 576 1200
  68. #
  69. #
  70. # The following describes the parameters for the AppleTalk driver.
  71. # Note that this is a very simple AppleTalk interface, and will only
  72. # work with another Mac in the same AppleTalk zone running this
  73. # version of Net/Mac.  (uses the LAP protocol)
  74. #
  75. # argv[0]: hardware type, must be "appletalk"
  76. # argv[1]: Protocol Type, e.g., "77"
  77. # argv[2]: device name,must be "b"
  78. # argv[3]: mode, must be "arpa"
  79. # argv[4]: interface label, e.g., "at0"
  80. # argv[5]: maximum number of packets allowed on receive queue, e.g., "5"
  81. # argv[6]: maximum transmission unit, bytes, e.g., "600" 
  82. # < appletalk limitation.)
  83. #
  84. #
  85. # attach appletalk 77 b arpa at0 5 600
  86. #
  87. #
  88. # Insert your personal IP address make sure you put it inside the []'s:
  89. #
  90. #
  91. ip addr [IPADDRESS]
  92. #
  93. #
  94. # AX.25 CONFIGURATION:
  95. # The values in the following entries reflect default values.
  96. # These values come into play when you are operating in the  AX.25
  97. # mode, along with your "ax25 mycall" entry above. 
  98. #
  99. # Disable AX.25 digipeating, and let them eat cake:
  100. #
  101. #
  102. ax25 digipeat on
  103. #
  104. #
  105. # Set the max number of frames allowed to remain unacknowledged--
  106. # cannot be greater than 7, and 1 is a good number:
  107. #
  108. #
  109. ax25 maxframe 1
  110. #
  111. #
  112. # Limit the size of I=fields:
  113. #
  114. #
  115. ax25 paclen 256
  116. #
  117. #
  118. # Limit the number of unsuccessful retransmissions:
  119. #
  120. #
  121. ax25 retry 10
  122. #
  123. #
  124. # Set the number of bytes that can be pending on an AX.25 receive
  125. # queue:
  126. #
  127. #
  128. ax25 window 2048
  129. #
  130. #
  131. ax25 t1 6000
  132. # Above is the same as FRACK
  133. ax25 t2 1000
  134. # Above is the same as  RESPTIME
  135. ax25 t3 300000
  136. # Above is the same as CHECK
  137. #
  138. #
  139. # Turn on the mheard command in tcp...
  140. #
  141. #
  142. ax25 heard on
  143. #
  144. #
  145. # TCP/IP can send frames in one of two ways. 1 called a " datagram,"
  146. # and the other "vc," which stand for Virtual Circut.
  147. # If in "datagram," mode TCP/IP will send all frames as unconnected, like
  148. # a normal beacon frame. This is OK if the signal path to the staion
  149. # you are connected to is good, as it cuts down on the amount of
  150. # traffic on channel. However if you have a weak link you should
  151. # try "vc," mode this is like any normal ax25 packet connection.
  152. #
  153. #
  154. mode ax0 datagram
  155. #
  156. #
  157. # The following commands turn on the beacon function.
  158. # The first command set which port to beacon on.  The second command
  159. # is the callsign to beacon to (QST is everyone), the third line is the actual
  160. # beacon message followed by the beacon interval in seconds, and finally
  161. # the last command turns on the beacon.
  162. #
  163. beacon set ax0
  164. beacon callsign QST
  165. beacon message "[IPADDRESS] Macintosh TCP/IP STN YOUR TOWN ANYWHERE "
  166. beacon interval 1200
  167. beacon enable
  168. #
  169. #
  170. # While your TNC is in KISS mode (it needs to be to use this software )
  171. # it is possible to change a few of the TNC's papameters.
  172. # These are TXDELAY, TXTAIL, PERSIST, SLOTTIME and DUPLEX.
  173. # ( You will get details of what these command do in the users manual for your
  174. #  TNC.) However most TNC's have perfectly good values and these may not
  175. # need to be changed. Please check the KISS mode details for your TNC.
  176. #
  177. # The format is:  param <label> <hex value> <hex value> ...
  178. #
  179. # As an example, a TNC-1 with an old crystal transmitter that is
  180. # slow to key may need longer TXDELAY and TXTAIL values than the
  181. # defaults, e.g.:
  182. #
  183. #param ax0 1 30
  184. # Above is the same as TXDELAY.
  185. #param ax0 2 64
  186. # Above is the same as TXTAIL
  187. #param ax0 3 10
  188. # Above is the same as PRESIST
  189. #param ax0 4 10
  190. # Above is the same as SLOTTIME
  191. #param ax0 5 0
  192. # Above is the same as DUPLEX
  193. #
  194. #
  195. # Time To Live is the maximum number of hops a packet can take
  196. # before it is thrown away. This command prevents an infinite
  197. # loop from occuring with packets in the network.
  198. #
  199. ip ttl 10
  200. #
  201. #
  202. # The Maximum Segment Size is the largest single transmission that
  203. # you will send. An mss of 216 corresponds to the mtu of 256 set
  204. # up in the attach command above, overhead bytes considered.
  205. #
  206. tcp mss 216
  207. #
  208. #
  209. # The Window parameter establishes the maximum number of bytes
  210. # that may be outstanding before your system expects an ack. If
  211. # window is twice as big as mss, for example, there will be two
  212. # active packets on the channel at any given time... large values
  213. # of window provide improved throughput on full-duplex links, but
  214. # are a problem on the air.  Keep  mss <= window <= 2*mss if
  215. # you're on the air.
  216. #
  217. tcp window 432
  218. #
  219. #
  220. # Tell TCP where to keep a log file - NOTE THE LEADING ':' CHARACTER
  221. # This file also needs a directory path to it, ( same as the host.net
  222. # file above ) so that the software can find it. Again see the NET/Mac
  223. # help menu.
  224. #
  225. #
  226. log :spool:log
  227. #
  228. #
  229. # set round trip time to 10 seconds - the original documentation states
  230. # this value as seconds, when it should be milliseconds!
  231. #
  232. tcp irtt 10000
  233. #
  234. #
  235. # smtp timer below sets the amount of time between attempts to send
  236. # messages in the queue.  The value of 180 (seconds) sets it to every 3 min.
  237. # commented out for now, once you are familiar with smtp, you may change
  238. # this to meet your local needs.  Three minutes is a good number if your
  239. # station is up 24hrs/day.  If not, adjust to more like 10 minutes
  240. # (600 seconds)
  241. #
  242. #
  243. smtp timer 600
  244. #
  245. #
  246. # smtp gateway is the station which will forward your mail on
  247. # to the ax25 network and to other stations how you cannot reach directly.
  248. # In this case gb3xp is my local gateway, you should replace this with the
  249. # callsign of your local gateway. A local TCP/IPer should be able to help
  250. # you with this.
  251. #
  252. #
  253. smtp gateway gb3xp
  254. #
  255. #
  256. # Set the escape character - this is required for the Mac 512/Plus
  257. # keyboards.  You may comment it out for the ADB keyboards.
  258. #
  259. #
  260. escape `
  261. #
  262. # Set the local timezone and offset to GMT
  263. #
  264. tzone GMT 0
  265. #
  266. #
  267. # Setup mailbox function for AX25 connects
  268. #
  269. #
  270. mbox y
  271. #
  272. #
  273. # The following command is optional, and allows you to provide a
  274. # callsign lookup function assuming you have an appropriate datafile.
  275. # There are two parameters, the first is the path to the data file, and the
  276. # second is the path to a logging file. If you wish to use this function
  277. # you will may need to change the file path.
  278. #
  279. #
  280. #callbk NET/Mac:Callsign:callbook NET/Mac:Callsign:callsign.log
  281. #
  282. #
  283. #
  284. #
  285. # Enable the Proxy ARP facility.  This function allows for automatic
  286. # digipeating (so to speak) between several stations without having
  287. # to explicidly adding arp entries.
  288. #
  289. #
  290. is_es enable
  291. #
  292. #
  293. # enable IP Heard command.  Keeps a running list of stations heard on
  294. # the channel.  Typing IP H at the net> prompt will display the last 20 or
  295. # so stations that have been heard.  You may also us AX25 H to see the last
  296. # 20 ax25 stations.
  297. #
  298. #
  299. ip heard on
  300. #
  301. #
  302. # Tell TCP to start up each of its daemons:
  303. start smtp
  304. start ftp
  305. start echo
  306. start discard
  307. start telnet
  308. start finger
  309. #
  310. #
  311. # The next entry set the default arp address.  You may add additional arp
  312. # entries as needed. This one needs a little explaining. This is where
  313. # TCP/IP maps IP address to ax25 callsigns. For example the 
  314. # entry, arp add gb3xp ax25 g8ggi-2, here TCP/IP will look up the
  315. # IP address for gb3xp in the host.net file, ( it just happens that
  316. # the IP address for gb3xp is 44.131.7.1 ) it then knows that any
  317. # TCP/IP information you want to send to 44.131.7.1 ( gb3xp ) will
  318. # use on air the callsign g8ggi-2 to make that connection. g8ggi-2 is the node
  319. # for SMTP mail.
  320. # In the next example I want all TCP/IP connections for host 44.131.6.5 
  321. # ( g4bio ) to go straight to g4bio, no SSID. You only need an ARP entry for
  322. # stations that you are going to connect to directly. You do not need an ARP
  323. # entry for stations that you are routing to via another station.
  324. # Example 1, you can hear station G4ZZZ and you would like to connect to
  325. # him for this you need an ARP entry. Example 2, you want to connect to station
  326. # G0AAA, whoever you can not hear him so therefore cannot connect to him
  327. # directly, however station G4ZZZ can hear him and can therefore route you to
  328. # G0AAA, for this you do not need an ARP entry. We will deal with how to do
  329. # the routing in the next entry. 
  330. #
  331. #
  332. arp add [44.131.0.0]/16 ax0 QST
  333. arp add gb3xp ax0 g8ggi-2
  334. arp add g4bio ax0 g4bio
  335. #
  336. #
  337. # This is where you tell NET/Mac how to send the packets. By default all
  338. # packets will go out the "ax0" port. Howver you can and should enter your own
  339. # routes. The first entry below is the default. The second entry means that
  340. # you want to send all packets for g0oan directly. The last entry means that
  341. # you want to send all packets for G0AAA on interface ax0 using G4ZZZ as a
  342. # TCP/IP gateway, he will then route your packets to G0AAA. Do not confuse this
  343. # type of gateway with the SMTP GATEWAY above.
  344. #
  345. #
  346. route add default ax0
  347. route add g0oan ax0
  348. route add g0aaa ax0 g4zzz
  349. #
  350. #
  351. #
  352. #
  353. #
  354. #  ****************** NOW GO TO THE HOST.NET FILE. *************************
  355. #
  356. #
  357. #
  358. # End of Autoexec.net
  359.  
  360.  
  361.